import request from '@/utils/request'

// 查询分部分项列表
export function listCheckType(query) {
  return request({
    url: '/gcxt/checktype/list',
    method: 'get',
    params: query
  })
}

// 新增分部分项
export function addCheckType(data) {
  return request({
    url: '/gcxt/checktype/add',
    method: 'post',
    data: data
  })
}

// 修改分部分项
export function updateCheckType(data) {
  return request({
    url: '/gcxt/checktype/edit',
    method: 'post',
    data: data
  })
}

// 删除分部分项
export function delCheckType(id) {
  return request({
    url: '/gcxt/checktype/delete',
    method: 'post',
    data: { fid: id }
  })
}

// 查询专业类别列表
export function listSpecialType(query) {
  return request({
    url: '/gcxt/prochecktype/list',
    method: 'get',
    params: query
  })
}

// 查询专业类别列表树
export function listCheckTypeTree(query) {
  return request({
    url: '/gcxt/checktype/listTree',
    method: 'get',
    params: query
  })
}
